<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>上传文件</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<style type="text/css">
		
	</style>
</head>
<body>
	<%@ include file="include/topbar.jsp" %>
		<div class="container" style="margin-top: 60px">
			<div class="row">
				<jsp:include page="include/left.jsp">
					<jsp:param value="share" name="tag"/>
				
				</jsp:include>
		
		<div class="span9 ">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius:3px 3px 0 0">	
						
							<li><h4 style="display:inline"><i class=" icon-plus"></i>&nbsp;上传文献</h4></li>
			</ul>	
			
		<form class=" wall" enctype="multipart/form-data" style="padding-left:150px;padding-top:50px;min-height:325px" action="upload.jspx" method="post" id="uploadfrom" >
			<label style="font-weight:bold">文献名称:</label><br/>
			<input type="text" name="name" id="name"class="span4"/><br/><br/>
        	<input  type="file" name="myfile" /><br /><br />
        	<a href="file.jspx?foid=${folder.id}" class="btn btn-inverse">返回</a>
          	<a  class=" btn-primary btn" id="upload">上传</a>
          	
        
          	
      </form>
			
	</div>
</div></div>
	<script type="text/javascript">
		$(document).ready(function(){
			
			
			$("#upload").click(function(){
				if($("#name").val().trim() == ""){
					alert("名称不能为空！");
				}else{
					$("#uploadfrom").submit();
				}
				
			});
			
			
			
		});
	</script>
</body>
</html>
